<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  

</body>
<script>
  function hd([name,age]){
    console.log(name,age);
  }
  hd(["xxx","aaa"])

  function hd2({name,age}){
    console.log(name,age)
  }
  param ={name:'hello',age:22}
  hd2(param)

  // 部分结构
  function hd3(name,{sex,age}){ 
    console.log(name,sex,age)
  }
  hd3("wzy",{sex:"男",age:"25"})
</script>
</html>